import request from '@/utils/axios'
import store from '@/store'

// 查看入排条件（用户分组）
export const getListByName = (id: any) => {
  return request.get({
    url: '/disease/manage/group/info',
    params: {
      id: id
    }
  })
}

// ai分组修改/保存
export const saveAiGroup = (data: any) => {
  if (data.id) {
    return request.post({
      url: '/disease/manage/group/update',
      data: data
    })
  } else {
    return request.post({
      url: '/disease/manage/group/save',
      data: data
    })
  }
}

// 智能分组 事件类型获取事件名称
export const getEventName = (data: any) => {
  return request.post({
    url: `/disease/dict/data/find?dictTypeId=${data.dictTypeId}`
  })
}
